package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "TB_SWITCH", schema = "dbo")
public class TbSwitch 
{
	//通信开关表
	private String switchid;
	private int phoneswitch;
	private int messageswitch;

	private int faxswitch;
	private int emailswitch;
	
	public TbSwitch()
	{
		
	}
	
	@Id
	@Column(name = "SWITCH_ID",nullable = false, length = 4)
	public String getSwitchid() {
		return switchid;
	}
	public void setSwitchid(String switchid) {
		this.switchid = switchid;
	}
	@Column(name = "PHONE_SWITCH")
	public int getPhoneswitch() {
		return phoneswitch;
	}
	public void setPhoneswitch(int phoneswitch) {
		this.phoneswitch = phoneswitch;
	}
	
	@Column(name = "MESSAGE_SWITCH")
	public int getMessageswitch() {
		return messageswitch;
	}
	public void setMessageswitch(int messageswitch) {
		this.messageswitch = messageswitch;
	}
	
	@Column(name = "FAX_SWITCH")
	public int getFaxswitch() {
		return faxswitch;
	}
	public void setFaxswitch(int faxswitch) {
		this.faxswitch = faxswitch;
	}
	
	@Column(name = "EMAIL_SWITCH")
	public int getEmailswitch() {
		return emailswitch;
	}
	public void setEmailswitch(int emailswitch) {
		this.emailswitch = emailswitch;
	}
	public TbSwitch(String switchid, int phoneswitch, int messageswitch,
			int faxswitch, int emailswitch) {
		super();
		this.switchid = switchid;
		this.phoneswitch = phoneswitch;
		this.messageswitch = messageswitch;
		this.faxswitch = faxswitch;
		this.emailswitch = emailswitch;
	}
}
